﻿using System;
using Boss;
namespace UserManagement
{
    class Program
    {
        static void Main(string[] args)
        {
            UserIndex userIndex = new UserIndex();
            Console.WriteLine("欢迎来到XXX银行");
            Console.WriteLine("按下任意键查看个人信息");
            Console.ReadKey();
            Console.WriteLine();
            userIndex.UserName = "张三";
            userIndex.UserSex = '男';
            userIndex.UserAge = 19;
            userIndex.UserId = 35042612345678901;
            userIndex.UserAddress = "地球";
            userIndex.UserWork = "学生";
            userIndex.UserWorkAddress = "闽西职业技术学校";
            Console.WriteLine("\n姓名：{0} \n性别：{1} \n年龄：{2} \n身份证号码：{3} \n居住地：{4} \n职业：{5} \n工作或学习地点：{6}", userIndex.UserName, userIndex.UserSex, userIndex.UserAge, userIndex.UserId, userIndex.UserAddress, userIndex.UserWork, userIndex.UserWorkAddress);
            Console.WriteLine();
            for (int i = 0; i < 5; i++)
            {
                Console.WriteLine("系统提示：您有新的信息！");
            }
            Console.WriteLine("是否查看？查看输入1，拒绝输入0");
            int num = int.Parse(Console.ReadLine());
            if (num == 1)
            {
                Console.WriteLine("少爷您好，你有一份遗产需要继承！");
                Console.WriteLine("请问是否继承？是输入1，否输入0");
                int num1 = int.Parse(Console.ReadLine());
                if (num1 == 1)
                {
                    Boss.Program program = new Boss.Program();
                    Console.WriteLine("Boss.Program.Main 知识有限继承遗产失败~~~");
                    //俺不会调用其他项目的类
                }
                else
                {
                    Console.WriteLine("牛逼 老爹的一万亿美元的遗产都不要！！！");
                }
            }
            else
            {
                Console.WriteLine("你命不好是天生的啊！");
            }
        }
    }
}
